<?php
namespace App\Http\Controllers\Client\Talent;

use App\Http\Controllers\ClientController;
use App\Models\Common\Common;
use App\Models\Talent;
use Illuminate\Support\Facades\Log;

class TalentApplyBeforeController extends ClientController
{
    /**
     * 查询可选择的channel
     */

    public function index()
    {
        try{
            $channels = Common::getChannels();
            $talent = Talent::getTalentMessage($this->we_id);
        }catch (\Exception $e){
            Log::error(TalentApplyBeforeController::class,['msg' => $e->getMessage(), 'file' => $e->getFile(), 'line' => $e->getLine()]);
            return $this->setReturnJson(-1,'查询失败，请稍后再试');
        }
        return $this->setReturnJson(0,'success',['talent'=>$talent,'channels' => $channels]);
    }

}
